package com.fengye.security.demo.controller;

import org.springframework.util.StringUtils;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Collection;
import java.util.List;

/**
 * @Author sky
 * @Email <mailto:fengyexjtu@126.com>
 * @Date 2020/12/29 17:23
 * @Description
 */
@RestController
@RequestMapping("/users")
public class UserController {

    @GetMapping
    public Collection<String> getUsers() {
        return StringUtils.commaDelimitedListToSet("test1,test2,test3");
    }
}
